Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity][MSC][M0.3] MSCGraph Builder #15615

Merged
merged 4 commits into from
Aug 30, 2023
Merged

[Unity][MSC][M0.3] MSCGraph Builder #15615

merged 4 commits into from
Aug 30, 2023

Conversation

Archermmt
Copy link
Contributor

@Archermmt Archermmt commented Aug 23, 2023

This is a pull request for MSC(Multi-System Compile)
RFC: https://discuss.tvm.apache.org/t/rfc-unity-msc-introduction-to-multi-system-compiler/15251/5
Tracking issue: #15233

This is the first part of Milestone 0: Build MSCGraph core parts. Enable translation between Relay, Relax and MSCGraph without loss information.

To limit each PR in reviewable size, the Milestone 0 will be split into 5 steps:
M0.1: Passes for set name and layout for expressions (src/contrib/msc/transform)
M0.2: MSCGraph core (src/contrib/msc/core/ir/graph && python/tvm/contrib/msc/core/ir/graph)
M0.3: MSCGraph Builder (src/contrib/msc/core/ir/graph_builder)
M0.4: Codegen (src/contrib/msc/core/codegen, src/contrib/msc/framework/tvm/codegen)
M0.5: Translation test (relax/relay test && related helper modules in python)

This PR add test for GraphBuilder and MSCGraph.

GraphBuilder translate relax/relay function to MSCGraph. Implement of GraphBuilder is similar to GraphCreator in: https://github.com/apache/tvm/blob/unity/src/relax/transform/fuse_ops.cc

The MSCGraph built form relax will be used as "IR" in all MSC process. This PR test MSCGraph by check the consistency. To keep the unittest clean and tiny, MSCGraph.inspect() is used as the readable "hash" of a MSCGraph. A inspect extract all the important infos in graph to dict, and can be used as the abstract of the graph.

cc @Hzfengsy

@tvm-bot
Copy link
Collaborator

tvm-bot commented Aug 23, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@github-actions github-actions bot requested a review from Hzfengsy August 24, 2023 22:49
@Hzfengsy Hzfengsy merged commit 14d9cf8 into apache:unity Aug 30, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants